package com.gitee.ywj1352.lazy;

public class LazySafe2 {
    private LazySafe2(){}
    private static LazySafe2 lazy ;

    public static synchronized LazySafe2 getInstance(){
        return LazyHolder.lazySafe2;
    }

    private static class LazyHolder{
        private static final LazySafe2 lazySafe2 = new LazySafe2();

    }


}
